package com.yingma.common.controller;

import com.yingma.common.util.AjaxResult;
import com.yingma.system.entity.JcReceivingparty;
import com.yingma.system.service.JcReceivingpartyService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (JcReceivingparty)表控制层
 *
 * @author makejava
 * @since 2020-03-24 17:06:40
 */
@RestController
@RequestMapping("jcReceivingparty")
public class JcReceivingpartyController {
    /**
     * 收发货方 服务对象
     */
    @Resource
    private JcReceivingpartyService jcReceivingpartyService;


    @ApiOperation("查询收发货方的信息")
    @RequestMapping(value = "/searchInfo",method = RequestMethod.POST)
    public AjaxResult getAllInfo(@ApiParam("联系人")String customername,@ApiParam("联系电话")String contactphone,@ApiParam("当前页数") Integer pageNum, @ApiParam("每页数据量") Integer pageSize){
        List<JcReceivingparty> list= jcReceivingpartyService.SearchInfobySomeConditions(customername, contactphone, pageNum, pageSize);
        return AjaxResult.success(list);
    }





}
